package org.dashboard.service;

import org.dashboard.bean.AdAuthorization;

import java.util.List;

public interface AdAuthorizationService {
    int deleteByPrimaryKey(Integer authorizationId);

    int insert(AdAuthorization record);

    int insertSelective(AdAuthorization record);

    AdAuthorization selectByPrimaryKey(Integer authorizationId);

    int updateByPrimaryKeySelective(AdAuthorization record);

    int updateByPrimaryKey(AdAuthorization record);


    int deleteByRoleIdResourceType(Integer roleId, Integer resourceType);

    boolean checkUserHasResources(Integer userId, Integer resourceId, Integer resourceType);

    List<AdAuthorization> queryRoleResources(Integer roleId, Integer resourceType);

}
